﻿using System;
using FollowMe.Infrastructure;

namespace FollowMe.Model
{
    public class Location : IAggregateRoot
    {
        public Guid LocationID { get; internal set; }

        public Guid MemberID { get; internal set; }

        public double Lattitude { get; internal set; }

        public double Longitude { get; internal set; }

        public DateTime Date { get; internal set; }

        public String Note { get; internal set; }

        public Boolean isNote()
        {
            return (Note != null && Note.Length != 0);
        }

        protected virtual void Dispose(Boolean dis)
        {
            if (dis)
            {

            }
        }

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }
    }
}
